import wtforms

from validators import BaseForm, BasePageForm


class RoleMenuForm(BaseForm):
    """
    r_角色菜单关系表单校验类
    """
    id = wtforms.IntegerField()
    roleId = wtforms.StringField("角色ID", [wtforms.validators.DataRequired(message="角色ID不能为空")])
    menuId = wtforms.StringField("菜单ID", [wtforms.validators.DataRequired(message="菜单ID不能为空")])


class RoleMenuPageForm(BasePageForm):
    """
    r_角色菜单关系分页校验类
    """
    pass
